<template>
  <div>
    <TypeNav></TypeNav>
    <ListContainer></ListContainer>
    <Recommend></Recommend>
    <Rank></Rank>
    <Like></Like> 
    <Floor v-for="val in floorList" :key="val.id" :list="val"></Floor>
    <Brand></Brand>
  </div>
</template>

<script>
import TypeNav from "@/components/TypeNav";
import ListContainer from "./ListContainer/index.vue";
import Recommend from "./Recommend/index.vue";
import Rank from "./Rank/index.vue";
import Like from "./Like/index.vue";
import Floor from "./Floor/index.vue";
import Brand from "./Brand/index.vue";
import { mapState } from "vuex";
export default {
  components: { TypeNav, ListContainer, Recommend, Rank, Like, Floor, Brand },
  mounted(){
    this.$store.dispatch('reqGetFloorList')
    this.$store.dispatch('loginSucc')
  },
  computed: {
    ...mapState({
      floorList:state=>state.home.floorList
    })
  },
  methods: {
    add(){},
  },
};
</script>

<style>
</style>